package com.ipfsemc.ipfsemc.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(value ="UserSpace",description = "用户矿机")
public class UserSpace {

    @ApiModelProperty(notes = "ID",example = "2")
    private Long spaceId;

    @ApiModelProperty(notes = "用户ID")
    private String userId;

    @ApiModelProperty(notes = "产品ID")
    private String proId;

    @ApiModelProperty(notes = "矿机空间",example = "40")
    private Integer space;

    @ApiModelProperty(notes = "矿机的升力值",example = "400")
    private Integer spaceUp;

    @ApiModelProperty(notes = "算力")
    private BigDecimal hashrate;

    @ApiModelProperty(notes = "累计收益的fil币")
    private BigDecimal fil;

    @ApiModelProperty(notes = "到期时间")
    private Date expirationTime;

    @ApiModelProperty(notes = "启动日期")
    private Date startTime;

    @ApiModelProperty(notes = "启动状态 0启动 -1未启动",example = "-1")
    private Integer startState;

    @ApiModelProperty(notes = "产品时长   单位月",example = "6")
    private Integer duration;

    @ApiModelProperty(notes = "服务费到期日期")
    private Date serviceTime;

    @ApiModelProperty(notes = "付款时间")
    private Date payTime;

    @ApiModelProperty(notes = "服务费时长  月",example = "6")
    private Integer serviceDuration;

    @ApiModelProperty(example = "0",notes = " 矿机状态，0使用中 1申请中  -1 以退租，已转让   分为海王租用 和海皇转让")
    private Integer spaceState;

    @ApiModelProperty(notes = "矿机类型",example = "2",readOnly = true)
    private Integer proType;

    @ApiModelProperty(notes = "申请时间  （包括退租或者转让）")
    private Date applyTime;

//    @ApiModelProperty(notes = "ID")
//    private Integer scale;






}